<?php


namespace App\Models;


use Illuminate\Database\Eloquent\SoftDeletes;

class ShopCart extends BaseModel
{
    use SoftDeletes;


    public function spu()
    {
        return $this->hasOne(GoodsSpu::class, 'id', 'spu_id');
    }

    public function sku()
    {
        return $this->hasOne(GoodsSku::class, 'id', 'sku_id');
    }

    public function shop()
    {
        return $this->hasOne(Shop::class, 'id', 'shop_id');
    }


}